//
//  MyAFNetworking.h
//  ZWXanfansystem
//
//  Created by zzp on 15/6/3.
//  Copyright (c) 2015年 zzp. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"
#import "GlobalReference.h"

typedef void(^AFHTTPRequestSucess)(NSURLSessionDataTask *operation,id responseObject);
typedef void(^AFHTTPRequestFailure)(NSURLSessionDataTask *operation,NSError *error);

@interface MyAFNetworking : NSObject

+(void)Post:(NSString *)urlStr addParameters:(NSDictionary *)parameters andSucessBlock:(AFHTTPRequestSucess)sucess andFailureBlock:(AFHTTPRequestFailure)failure;

+(void)PostImage:(NSString *)urlStr addParameters:(NSDictionary *)parameters andData:(NSData *)data andSucessBlock:(AFHTTPRequestSucess)sucess andFailureBlock:(AFHTTPRequestFailure)failure;

+(void)Get:(NSString *)urlStr andSucessBlock:(AFHTTPRequestSucess)sucess andFailureBlock:(AFHTTPRequestFailure)failure;

+(void)testUrl:(NSString *)weburl andSucessBlock:(AFHTTPRequestSucess)sucess andFailureBlock:(AFHTTPRequestFailure)failure;

+(void)Updata;

@end
